<template>
  <div class="home">
    欢迎<span style="color: blue; font-weight: bolder">
      {{ user.nickName }}</span
    >来到我的后台主页
  </div>
</template>

<script>
export default {
  name: "Home",
  data() {
    return {
      user: "",
    };
  },
  created() {
    var userStr = sessionStorage.getItem("user") || "{}";
    this.user = JSON.parse(userStr);
  },
};
</script>
